package com.wp.module.WpWallpaperColor.service.impl;

import com.wp.module.WpWallpaperColor.domain.WpWallpaperColor;
import com.wp.module.WpWallpaperColor.mapper.WpWallpaperColorMapper;
import com.wp.module.WpWallpaperColor.service.IWpWallpaperColorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 颜色类型Service业务层处理
 * 
 * @author wp
 * @date 2025-02-25
 */
@Service
public class WpWallpaperColorServiceImpl implements IWpWallpaperColorService 
{
    @Autowired
    private WpWallpaperColorMapper wpWallpaperColorMapper;

    /**
     * 查询颜色类型
     * 
     * @param id 颜色类型主键
     * @return 颜色类型
     */
    @Override
    public WpWallpaperColor selectWpWallpaperColorById(String id)
    {
        return wpWallpaperColorMapper.selectWpWallpaperColorById(id);
    }

    /**
     * 查询颜色类型列表
     * 
     * @param wpWallpaperColor 颜色类型
     * @return 颜色类型
     */
    @Override
    public List<WpWallpaperColor> selectWpWallpaperColorList(WpWallpaperColor wpWallpaperColor)
    {
        return wpWallpaperColorMapper.selectWpWallpaperColorList(wpWallpaperColor);
    }

    /**
     * 新增颜色类型
     * 
     * @param wpWallpaperColor 颜色类型
     * @return 结果
     */
    @Override
    public int insertWpWallpaperColor(WpWallpaperColor wpWallpaperColor)
    {
        return wpWallpaperColorMapper.insertWpWallpaperColor(wpWallpaperColor);
    }

    /**
     * 修改颜色类型
     * 
     * @param wpWallpaperColor 颜色类型
     * @return 结果
     */
    @Override
    public int updateWpWallpaperColor(WpWallpaperColor wpWallpaperColor)
    {
        return wpWallpaperColorMapper.updateWpWallpaperColor(wpWallpaperColor);
    }

    /**
     * 批量删除颜色类型
     * 
     * @param ids 需要删除的颜色类型主键
     * @return 结果
     */
    @Override
    public int deleteWpWallpaperColorByIds(String[] ids)
    {
        return wpWallpaperColorMapper.deleteWpWallpaperColorByIds(ids);
    }

    /**
     * 删除颜色类型信息
     * 
     * @param id 颜色类型主键
     * @return 结果
     */
    @Override
    public int deleteWpWallpaperColorById(String id)
    {
        return wpWallpaperColorMapper.deleteWpWallpaperColorById(id);
    }
}
